<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.14.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PID_Study: E:/STM32CubeIDEWorkspace/noRTOS/PID_Study/Drivers/BSP/Inc/u8g2_stm32_hw_iic.h 源文件</title>
<link rel="icon" href="Doxygen-55px.png" type="image/x-icon" />
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="Doxygen-55px.png"/></td>
  <td id="projectalign">
   <div id="projectname">PID_Study<span id="projectnumber">&#160;v1.0.0</span>
   </div>
   <div id="projectbrief">doc for PID_Study</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.14.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search/",'.html');
</script>
<script type="text/javascript">
$(function() { codefold.init(); });
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a href="dir_0c97d201d54b8b5817233953fc3aadb6.html">STM32CubeIDEWorkspace</a></li><li class="navelem"><a href="dir_f3310f12da31771255acec658cd4246d.html">noRTOS</a></li><li class="navelem"><a href="dir_8022218a35d1971722714ae72b00e870.html">PID_Study</a></li><li class="navelem"><a href="dir_17bc370c857333bc4166d76f67bb735c.html">Drivers</a></li><li class="navelem"><a href="dir_b62ba9d628590829d5c152676ba50098.html">BSP</a></li><li class="navelem"><a href="dir_a3931c23c62a4333dd07fbd46d82639c.html">Inc</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="headertitle"><div class="title">u8g2_stm32_hw_iic.h</div></div>
</div><!--header-->
<div class="contents">
<a href="u8g2__stm32__hw__iic_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span> </div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span><span class="preprocessor">#ifndef __U8G2_STM32_HW_IIC_H__</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span><span class="preprocessor">#define __U8G2_STM32_HW_IIC_H__</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span><span class="preprocessor">#include &quot;main.h&quot;</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span><span class="preprocessor">#include &quot;u8g2.h&quot;</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno">   14</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"><a class="line" href="u8g2__stm32__hw__iic_8h.html#af3b86d961da0a3575b4f99c9ffaf01fd">   19</a></span><span class="preprocessor">#define u8 unsigned char</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="u8g2__stm32__hw__iic_8h.html#aabf4f709c8199e41cf279c77112345fe">   25</a></span><span class="preprocessor">#define MAX_LEN 128</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"><a class="line" href="u8g2__stm32__hw__iic_8h.html#a5751031b78e50f8d0fe4a34441717b9a">   31</a></span><span class="preprocessor">#define OLED_ADDRESS 0x78</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="u8g2__stm32__hw__iic_8h.html#a6202de0afc10764d94a0333eaa0b87a1">   37</a></span><span class="preprocessor">#define OLED_CMD 0x00</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno">   38</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="u8g2__stm32__hw__iic_8h.html#a93e8917859fa2ae044f01ceb96797c95">   43</a></span><span class="preprocessor">#define OLED_DATA 0x40</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span>uint8_t <a class="code hl_function" href="u8g2__stm32__hw__iic_8h.html#a48019023a62c9c8b760ec57e433e1e7e">u8x8_byte_hw_i2c</a>(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, <span class="keywordtype">void</span> *arg_ptr);</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno">   63</span>uint8_t <a class="code hl_function" href="u8g2__stm32__hw__iic_8h.html#a458b1587219ea54dccc399370a0e9813">u8x8_gpio_and_delay</a>(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, <span class="keywordtype">void</span> *arg_ptr);</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span></div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno">   69</span><span class="keywordtype">void</span> <a class="code hl_function" href="u8g2__stm32__hw__iic_8h.html#a318791e972320797c54a3f932090e005">u8g2Init</a>(u8g2_t *u8g2);</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno">   70</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno">   75</span><span class="keywordtype">void</span> <a class="code hl_function" href="u8g2__stm32__hw__iic_8h.html#acb0416b133509d0e873e1dc332561edf">draw</a>(u8g2_t *u8g2);</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno">   76</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno">   81</span><span class="keywordtype">void</span> <a class="code hl_function" href="u8g2__stm32__hw__iic_8h.html#a244b0a54daedf8f7297b974fb2e87309">testDrawPixelToFillScreen</a>(u8g2_t *u8g2);</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno">   82</span> </div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno">   83</span><span class="preprocessor">#endif </span><span class="comment">/* __U8G2_STM32_HW_IIC_H__ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="au8g2__stm32__hw__iic_8h_html_a244b0a54daedf8f7297b974fb2e87309"><div class="ttname"><a href="u8g2__stm32__hw__iic_8h.html#a244b0a54daedf8f7297b974fb2e87309">testDrawPixelToFillScreen</a></div><div class="ttdeci">void testDrawPixelToFillScreen(u8g2_t *u8g2)</div><div class="ttdoc">测试函数：绘制像素填满整个屏幕</div><div class="ttdef"><b>定义</b> u8g2_stm32_hw_iic.c:173</div></div>
<div class="ttc" id="au8g2__stm32__hw__iic_8h_html_a318791e972320797c54a3f932090e005"><div class="ttname"><a href="u8g2__stm32__hw__iic_8h.html#a318791e972320797c54a3f932090e005">u8g2Init</a></div><div class="ttdeci">void u8g2Init(u8g2_t *u8g2)</div><div class="ttdoc">初始化u8g2 OLED显示屏</div><div class="ttdef"><b>定义</b> u8g2_stm32_hw_iic.c:127</div></div>
<div class="ttc" id="au8g2__stm32__hw__iic_8h_html_a458b1587219ea54dccc399370a0e9813"><div class="ttname"><a href="u8g2__stm32__hw__iic_8h.html#a458b1587219ea54dccc399370a0e9813">u8x8_gpio_and_delay</a></div><div class="ttdeci">uint8_t u8x8_gpio_and_delay(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr)</div><div class="ttdoc">u8g2 GPIO及延时处理函数</div><div class="ttdef"><b>定义</b> u8g2_stm32_hw_iic.c:79</div></div>
<div class="ttc" id="au8g2__stm32__hw__iic_8h_html_a48019023a62c9c8b760ec57e433e1e7e"><div class="ttname"><a href="u8g2__stm32__hw__iic_8h.html#a48019023a62c9c8b760ec57e433e1e7e">u8x8_byte_hw_i2c</a></div><div class="ttdeci">uint8_t u8x8_byte_hw_i2c(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr)</div><div class="ttdoc">STM32硬件I2C方式u8g2字节传输函数</div><div class="ttdef"><b>定义</b> u8g2_stm32_hw_iic.c:19</div></div>
<div class="ttc" id="au8g2__stm32__hw__iic_8h_html_acb0416b133509d0e873e1dc332561edf"><div class="ttname"><a href="u8g2__stm32__hw__iic_8h.html#acb0416b133509d0e873e1dc332561edf">draw</a></div><div class="ttdeci">void draw(u8g2_t *u8g2)</div><div class="ttdoc">OLED显示屏绘图函数</div><div class="ttdef"><b>定义</b> u8g2_stm32_hw_iic.c:139</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.14.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
